<template>
  <div>
    <mt-swipe :auto="4000">
      <mt-swipe-item v-for="item in swipeList" :key="item">
        <img :src="item" alt />
      </mt-swipe-item>
    </mt-swipe>

    <ul class="mui-table-view mui-grid-view mui-grid-9">
      <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
        <router-link to="/home/news">
          <img src="/src/icon/1.png" alt="">
          <div class="mui-media-body">新闻资讯</div>
        </router-link>
      </li>
      <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
        <router-link to="/home/photos">
          <img src="/src/icon/2.png" alt="">
          <div class="mui-media-body">图片分享</div>
        </router-link >
      </li>
      <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
        <router-link to="/home/goods">
          <img src="/src/icon/3.png" alt="">
          <div class="mui-media-body">商品购买</div>
        </router-link>
      </li>
      <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
        <a href="#">
          <img src="/src/icon/4.png" alt="">
          <div class="mui-media-body">留言反馈</div>
        </a>
      </li>
      <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
        <a href="#">
          <img src="/src/icon/5.png" alt="">
          <div class="mui-media-body">视频专区</div>
        </a>
      </li>
      <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
        <a href="#">
          <img src="/src/icon/6.png" alt="">
          <div class="mui-media-body">联系我们</div>
        </a>
      </li>
    </ul>
  </div>
</template>
<script>
import axios from "axios";
export default {
  data() {
    return {
      swipeList: []
    };
  },
  created() {
    this.getswipe();
  },
  methods: {
    getswipe() {
      axios({
        method: "get",
        url: "http://127.0.0.1:8888/getswipe"
      }).then(res => {
        console.log(res)
        this.swipeList = res.data.data;
      });
    }
  }
};
</script>
<style lang="scss" scoped>
.mint-swipe {
  height: 200px;
}
.mint-swipe-item {
  background-color: yellowgreen;
  img {
    width: 100%;
    height: 100%;
  }
}
.mui-grid-view.mui-grid-9{
  background-color:#fff;
  margin-bottom: 50px;
  img{
    height: 60px;
    width: 60px;
  }
}
.mui-grid-view.mui-grid-9 .mui-table-view-cell{
  border-right: 0px solid #eee;
    border-bottom: 0px solid #eee;
}
</style>
